package com.wulin.wucut.exception;

import com.wulin.wucut.common.CommonConstant;
import com.wulin.wucut.enums.WuLinExceptionEnum;

public class WuLinException extends RuntimeException {

    private String message;

    private String resultCode;
    
    private static final long serialVersionUID = 1L;

    public WuLinException(String message) {
        this.message = message;
        this.resultCode = CommonConstant.ERROR_RESULT_CODE;
    }
    public WuLinException(WuLinExceptionEnum exceptionEnum) {
        this.message = exceptionEnum.getMessage();
        this.resultCode = exceptionEnum.getCode();
    }
    

}
